package org.xl.main;

import com.jgoodies.looks.plastic.PlasticLookAndFeel;
import com.jgoodies.looks.plastic.PlasticXPLookAndFeel;
import com.jgoodies.looks.plastic.theme.ExperienceGreen;

import javax.swing.*;

import static javax.swing.JFrame.EXIT_ON_CLOSE;

public class MainClass {
    public static void main(String[] args) {
        // flatlight
//        JFrame.setDefaultLookAndFeelDecorated(true);
//        FlatLightLaf.setup();

        try {
            PlasticLookAndFeel.setPlasticTheme(new ExperienceGreen());
            UIManager.setLookAndFeel(new PlasticXPLookAndFeel());
        } catch (UnsupportedLookAndFeelException e) {
           e.printStackTrace();
        }
        SwingUtilities.invokeLater(() -> {
            LoginForm loginForm = new LoginForm();
            loginForm.setSize(530,300);
            loginForm.setVisible(true);
            loginForm.setDefaultCloseOperation(EXIT_ON_CLOSE);
        });
    }
}
